import request from '@/utils/request'

// 查询货源订单列表
export function getOrderList(data) {
	return request({
		url: '/logi/logi/goodOrder/list',
		method: 'post',
		data:data
	})
}

// 修改货源订单
export function updateOrderProfile(data) {
	return request({
		url: '/logi/logi/goodOrder',
		method: 'put',
		data: data
	})
}

// 新增货源订单
export function addOrder(data) {
	return request({
		url: '/logi/logi/goodOrder',
		method: 'post',
		data: data
	})
}

// 删除货源订单
export function deleteOrder(ids) {
	return request({
		url: '/logi/logi/goodOrder/' + ids,
		method: 'delete'
	})
}

// 获取货源订单详细信息
export function getOrderDetails(id) {
	return request({
		url: '/logi/logi/goodOrder/'+id,
		method: 'get'
	})
}